from flask import Flask, request

app = Flask(__name__)
"""
flask 配置
    1 直接配置
        app.debug=True or app.config['DEBUG'] = FALSE
    2 通过python文件配置
        app.config.from_pyfile("settings.py)
    3 通过对象配置
        app.config.from_object("mysettings.testConfig")
"""

app.config.from_object("mysettings.testConfig")
@app.route("/")
def index():
    return "hello world"

if __name__ == "__main__":
    app.run()